<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<div style="position:relative;">
	<div style="position:relative;width:250px;">
		<img src="/image/title_deal01.gif">
	</div>

	<div class="tab01 btn-group">
		<button onclick="goSearchType('SOCIAL_DEAL', 'HIT');" class="btn btn-small <c:if test="${empty condition || (condition.order eq 'HIT' && conditon.type ne 'FREE_DEAL')}">btn-info</c:if>"><i class="icon-heart icon-white"></i> 인기순</button>
		<button onclick="goSearchType('SOCIAL_DEAL', 'BUY_COUNT');" class="btn btn-small <c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'BUY_COUNT'}">btn-info</c:if>"><i class="icon-shopping-cart icon-white"></i> 구매순</button> 
		<button onclick="goSearchType('SOCIAL_DEAL', 'PRICE_ROW');" class="btn btn-small <c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'PRICE_ROW'}">btn-info</c:if>"><i class="icon-ok icon-white"></i> 가격순</button>
		<button onclick="goSearchType('SOCIAL_DEAL', 'RATE');" class="btn btn-small <c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'RATE'}">btn-info</c:if>"><i class="icon-arrow-down icon-white"></i> 할인율순</button>
		<button onclick="goSearchType('FREE_DEAL', '');" class="btn btn-small <c:if test="${condition.type eq 'FREE_DEAL'}">btn-info</c:if>"><i class="icon-music icon-white"></i> 무료상품</button>
	</div>
    
    <!--	
	<div class="tab01">
		<ul>
			<li onclick="goSearchType('SOCIAL_DEAL', 'HIT');" class="<c:if test="${empty condition || (condition.order eq 'HIT' && conditon.type ne 'FREE_DEAL')}">on</c:if>"><i class="icon-search icon-white"></i>인기순</li>
			<li onclick="goSearchType('SOCIAL_DEAL', 'BUY_COUNT');" class="<c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'BUY_COUNT'}">on</c:if>">구매순</li> 
			<li onclick="goSearchType('SOCIAL_DEAL', 'PRICE_ROW');" class="<c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'PRICE_ROW'}">on</c:if>">가격순</li>
			<li onclick="goSearchType('SOCIAL_DEAL', 'RATE');" class="<c:if test="${conditon.type ne 'FREE_DEAL' && condition.order eq 'RATE'}">on</c:if>">할인율순</li>
			<li onclick="goSearchType('FREE_DEAL', '');" class="<c:if test="${condition.type eq 'FREE_DEAL'}">on</c:if>">무료상품</li>
		</ul>
	</div>
	-->
</div>